<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        
        div {
            width: 100px;
            height: 100px;
            line-height: 100px;
            background-color: brown;
            color: white;
            font-size: 26px;
            text-align: center;
            border: 4px solid black;
        }

        body {
            height: 500px;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-content: space-between;
        }

    </style>
</head>
<body>
    
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
    <div>6</div>


</body>
</html>